package com.chixing.entity.DTO;

import com.chixing.entity.OrderDetail;
import com.chixing.entity.Orders;

import java.util.List;

public class OrderCreateDTO {
    private Orders orders; //订单主要信息
    private List<OrderDetail> orderDetails; //订单详情

    public OrderCreateDTO(){

    }

    public OrderCreateDTO(Orders orders, List<OrderDetail> orderDetails) {
        this.orders = orders;
        this.orderDetails = orderDetails;
    }

    public Orders getOrders() {
        return orders;
    }

    public void setOrders(Orders orders) {
        this.orders = orders;
    }

    public List<OrderDetail> getOrderDetails() {
        return orderDetails;
    }

    public void setOrderDetails(List<OrderDetail> orderDetails) {
        this.orderDetails = orderDetails;
    }

    @Override
    public String toString() {
        return "OrderCreateDTO{" +
                "orders=" + orders +
                ", orderDetails=" + orderDetails +
                '}';
    }
}
